package com.etoak.controller;


import com.etoak.common.core.vo.PageVO;
import com.etoak.common.core.vo.ResultVO;
import com.etoak.entity.Order;
import com.etoak.service.OrderItemService;
import com.etoak.vo.OrderItemVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;


/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author et2403
 * @since 2024-08-16
 */
@RestController
@RequestMapping("/orderItem")
public class OrderItemController {

    @Autowired
    OrderItemService orderItemService;

    @GetMapping("/{orderNo}")
    public ResultVO<List<OrderItemVO>> getList(@PathVariable String orderNo){
        List<OrderItemVO> list = orderItemService.getListItem(orderNo);
        return ResultVO.success(list);
    }

}

